<%@page import="com.tubeonfire.search.TubeSearchModel"%>
<%@page import="com.tubeonfire.entity.Tube"%>
<%@page import="com.tubeonfire.model.TubeModel"%>
<%@page contentType="text/xml;charset=UTF-8" language="java"%>
<%@page import="java.util.List"%>
<%
	TubeSearchModel model = (TubeSearchModel) request.getAttribute("model"); 
%>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <%
	for(Tube tub: model.getListResult()){
	%>
	<url>
	  <loc>http://<%=request.getServerName() %>/video/<%=tub.getId() %>/<%=tub.getAlias() %>.html</loc>
	</url>
	<%
	}
  %>
</urlset>